//
//  Extra.h
//  家校互通
//
//  Created by 姬鑫宇 on 15/4/20.
//  Copyright (c) 2015年 姬鑫宇. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFAppDotNetAPIClient.h"

@interface Extra : JSONModel

@property (nonatomic, retain) NSString  *address;
@property (nonatomic, assign) double    lng;
@property (nonatomic, assign) double    lat;
@property (nonatomic, assign) long      sn;
@property (nonatomic, retain) NSString  *time;
@property (nonatomic, assign) int       power;
@property (nonatomic, retain) NSString  *type;

+ (NSURLSessionDataTask *)globalTimelinePostsWithBlock:(void (^)(NSArray *posts, NSError *error))block withSn:(NSString *)sn andPhone_no:(NSString *)phone_no;
+ (NSURLSessionDataTask *)getMorePosWithBlock:(void (^)(NSString *resultStr, NSArray *posts, NSError *error))block withSNS:(NSArray *)snsArray;

@end

@interface ExtraPostion : JSONModel

@property (nonatomic, retain) NSString  *address;
@property (nonatomic, assign) double    lng;
@property (nonatomic, assign) double    lat;
@property (nonatomic, assign) long      sn;
@property (nonatomic, retain) NSString  *time;
@property (nonatomic, assign) int       power;
@property (nonatomic, retain) NSString  *type;
@property (nonatomic, retain) NSString  *cv;
@property (nonatomic, retain) NSString  *close_state;

@end
